using CommonDomain.Persistence;
using Machine.Specifications;
using Sponsorship.Domain;
using Sponsorship.Infrastructure.BootStrapping.Registries;
using StructureMap;

namespace Sponsorship.Specs.Commands
{
    public class when_a_commandhandler_for_command_entersponsoredchild_is_resolved
    {
        //static ICommandHandler<EnterSponsoredChild> _commandHandler;

        //Establish context = () => ObjectFactory.Initialize(x =>
        //                                                               {
        //                                                                   x.AddRegistry(new CommandHandlerRegistry());
        //                                                                   x.For<IRepository>().Use(new FakeRepository());
        //                                                               });

        //Because of = () => _commandHandler = ObjectFactory.GetInstance<ICommandHandler<EnterSponsoredChild>> ();

        //It should_find_an_appropriate_commandhandler = () => _commandHandler.ShouldNotBeNull();
    }
}
